package controller;

import gui.ConsolePanel;
import gui.TextEditorPanel;

public class DBController {
	

	private DBController() {

	}

	public static DBController getInstance() {
		if (dbController == null) {
			dbController = new DBController();
		}

		return dbController;
	}
	
	public void setTextEditorPanel(TextEditorPanel textEditorPanel) {
		this.textEditorPanel = textEditorPanel;
	}

	public TextEditorPanel getTextEditorPanel() {
		return textEditorPanel;
	}

	public void setConsolePanel(ConsolePanel consolePanel) {
		this.consolePanel = consolePanel;
	}

	public ConsolePanel getConsolePanel() {
		return consolePanel;
	}

	private static DBController dbController = null;
	private TextEditorPanel textEditorPanel = null;
	private ConsolePanel consolePanel = null;
}
